package qyf.example.eurekaclientelsaticsearch.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;
import qyf.example.eurekaclientelsaticsearch.entity.Video;

@Repository
public interface VideoRepository extends ElasticsearchRepository<Video, Long> {

    Page<Video> findByTitleOrderByUpdateTimeDesc(String title, PageRequest pageRequest);
}
